<?php

use Drupal\ssy_index_window\Entity\SsyIndexWindow;

function ssy_index_window_ssy_index_window_add_page() {
  $e = new SsyIndexWindow();
  module_load_include('inc', 'ssy_index_window', 'ssy_index_window.forms');
  return drupal_get_form('ssy_index_window_ssy_index_window_entity_form', $e, 'add');
}

function ssy_index_window_ssy_index_window_view_page(SsyIndexWindow $e) {
  return entity_view($e->entityType(), [$e]);
}

function ssy_index_window_ssy_index_window_edit_page(SsyIndexWindow $e) {
  module_load_include('inc', 'ssy_index_window', 'ssy_index_window.forms');
  return drupal_get_form('ssy_index_window_ssy_index_window_entity_form', $e, 'edit');
}

function ssy_index_window_ssy_index_window_delete_page(SsyIndexWindow $e) {
  module_load_include('inc', 'ssy_index_window', 'ssy_index_window.forms');
  return drupal_get_form('ssy_index_window_ssy_index_window_delete_form', $e);
}

